import type { AxiosRequestConfig } from "axios";

// axios 基本配置
export type BaseRequestConfigType = Pick<AxiosRequestConfig, "baseURL" | "timeout" | "withCredentials">;

/** 接口响应结构 */
export class ResponseData<T extends any> {
  code: number = 200;
  success: boolean = true;
  message: string = "操作成功";
  data = {} as unknown as T;
}
